package com.group3.service;

import com.group3.domain.StudentGroupInfo;
import com.group3.pojo.Page;
import com.group3.pojo.receive.GroupReceive;
import com.group3.pojo.receive.Students;
import com.group3.pojo.result.GroupResult;
import com.group3.utils.Result;

import java.util.List;

public interface AGroupService {

    public Result addGroup(String groupName, Integer statue);

    public Result<List<GroupResult>> selectGroup(String groupName);

    public Result updateGroup(GroupReceive groupReceive);

    public Result deleteGroup(Integer groupId);

    public Result<List<StudentGroupInfo>> selectStudentByGroup(
            Integer groupId, String studentName, String studentId, Page page);

    public Result addStudentsToGroup(Students students);

    public Result updateStudentsToGroup(Students students);

    public Result deletStudentsToGroup(Students students);

    public Result PutGroupOfLeader(Integer groupId, String studentId);
}
